package com.base.thread.demo_12;

public class Demo {
	
	public static void main(String[] args) {
		
		
		Thread t1 =  new Thread(new Target());
		Thread t2 =  new Thread(new Target());
		Thread t3 =  new Thread(new Target());
		
		
		t1.setPriority(1);
		t2.setPriority(10);
		//由于在不同平台的线程优先级不一样,所以要使用jdk自带的常量
		t3.setPriority(Thread.MAX_PRIORITY);
		
		t1.start();
		t2.start();
		t3.start();
		
	}

}
